﻿#define _CRT_SECURE_NO_WARNINGS
//作者：宋安康
#include<stdio.h>
#define MaxSize 100
typedef struct Link_sq
{
	int arr[MaxSize];
	int length;
}sqlink;

int init_link(sqlink* L) 
{
	L = (sqlink*)malloc(sizeof(sqlink));
	L->length = 0;
	return 1;
}
int main() 
{
	sqlink* L;
	init_link(L);
	/*if (ret == 0)
	{
		printf("分配失败\n");
	}
	else
	{
		printf("分配成功\n");
	}*/
	printf("%d\n",L->length);
	return 0;
}